/*
 * Powered By xTOOLs
 * Dev by tao.li8@pactera.com
 * Copyright ©2009-2018 pactera.com All rights reserved.
 * Generated at Aug 5, 2020 4:16:36 PM
 */

package com.pactera.jep.service.yapin.rental.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pactera.jep.entity.PO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.persistence.*;
import javax.validation.constraints.Digits;
import java.util.Date;

/**
 * 租赁信息实体类
 * @Author YourName
 * @Date Aug 5, 2020 4:16:36 PM
 */
@ApiModel(value = "Rental" , description = "租赁信息")
@Entity
@Table(name = "bs_col_rentalinfo")
public class Rental implements PO {

    @ApiModelProperty("租赁id")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Length(max = 36, message = "租赁id长度最多36位")
    @Column(name = "RENTALINFO_ID")
    private String rentalinfoId;

    @ApiModelProperty("押品编号")
    @Length(max = 40, message = "押品编号长度最多40位")
    @Column(name = "CLT_NO")
    private String cltNo;

    @ApiModelProperty("承租人名称")
    @Length(max = 100, message = "承租人名称长度最多100位")
    @Column(name = "RENTER_NM")
    private String renterNm;

    @ApiModelProperty("证件类型")
    @Length(max = 20, message = "证件类型长度最多20位")
    @Column(name = "ID_TP_CD")
    private String idTpCd;

    @ApiModelProperty("证件号码")
    @Length(max = 40, message = "证件号码长度最多40位")
    @Column(name = "ID_NO")
    private String idNo;

    @ApiModelProperty("联系电话")
    @Length(max = 20, message = "联系电话长度最多20位")
    @Column(name = "TL_NO")
    private String tlNo;

    @ApiModelProperty("联系人")
    @Length(max = 100, message = "联系人长度最多100位")
    @Column(name = "CONTACTS")
    private String contacts;

    @ApiModelProperty("每月租赁收入")
    @Length(max = 20, message = "每月租赁收入长度最多20位")
    @Column(name = "INCM_PERM_AMT")
    private String incmPermAmt;

    @ApiModelProperty("币种")
    @Length(max = 20, message = "币种长度最多20位")
    @Column(name = "CCY_CD")
    private String ccyCd;

    @ApiModelProperty("租赁起始日")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "BEGIN_DT")
    private Date beginDt;

    @ApiModelProperty("租赁到期日")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "END_DT")
    private Date endDt;

    @ApiModelProperty("往期租金是否收取")
    @Length(max = 20, message = "往期租金是否收取长度最多20位")
    @Column(name = "RENTAL_FLG")
    private String rentalFlg;

    @ApiModelProperty("合同备案登记日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "REG_DT")
    private Date regDt;

    @ApiModelProperty("附加条件")
    @Length(max = 65535, message = "附加条件长度最多65,535位")
    @Column(name = "CONDITIONS_ATTACHED")
    private String conditionsAttached;

    @ApiModelProperty("租住信息补充说明")
    @Length(max = 65535, message = "租住信息补充说明长度最多65,535位")
    @Column(name = "RENT_RMK")
    private String rentRmk;

    @ApiModelProperty("操作机构编码")
    @Length(max = 40, message = "操作机构编码长度最多40位")
    @Column(name = "OPR_ORG_NO")
    private String oprOrgNo;

    @ApiModelProperty("操作员代码")
    @Length(max = 40, message = "操作员代码长度最多40位")
    @Column(name = "OPR_NO")
    private String oprNo;

    @ApiModelProperty("操作日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "OPR_DT")
    private Date oprDt;

    @ApiModelProperty("押品Id")
    @Length(max = 36, message = "押品Id长度最多36位")
    @Column(name = "CLT_ID")
    private String cltId;

    @ApiModelProperty("租户")
    @Column(name = "TENANT_ID_")
    private String tenantId;

    @ApiModelProperty("创建人ID")
    @Column(name = "CREATED_BY_ID_")
    private String createdById;

    @ApiModelProperty("创建人名称")
    @Length(max = 64, message = "创建人名称长度最多64位")
    @Column(name = "CREATED_BY_NAME_")
    private String createdByName;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "CREATED_TIME_")
    private Date createdTime;

    @ApiModelProperty("逻辑删除标记")
    @Length(max = 1, message = "逻辑删除标记长度最多1位")
    @Column(name = "DELFLAG_")
    private String delflag;

    @ApiModelProperty("显示序号")
    @Digits(integer = 10, fraction = 0, message = "显示序号不能超过10位")
    @Column(name = "DISPLAY_ORDER_")
    private Integer displayOrder;

    @ApiModelProperty("修改人ID")
    @Column(name = "MODIFIED_BY_ID_")
    private String modifiedById;

    @ApiModelProperty("修改人名称")
    @Length(max = 64, message = "修改人名称长度最多64位")
    @Column(name = "MODIFIED_BY_NAME_")
    private String modifiedByName;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "MODIFIED_TIME_")
    private Date modifiedTime;

    @ApiModelProperty("版本")
    @Digits(integer = 10, fraction = 0, message = "版本不能超过10位")
    @Column(name = "VERSION_")
    private Integer version;

    public String getRentalinfoId(){
        return rentalinfoId;
    }

    public void setRentalinfoId(String rentalinfoId){
        this.rentalinfoId = rentalinfoId;
    }
    public String getCltNo(){
        return cltNo;
    }

    public void setCltNo(String cltNo){
        this.cltNo = cltNo;
    }
    public String getRenterNm(){
        return renterNm;
    }

    public void setRenterNm(String renterNm){
        this.renterNm = renterNm;
    }
    public String getIdTpCd(){
        return idTpCd;
    }

    public void setIdTpCd(String idTpCd){
        this.idTpCd = idTpCd;
    }
    public String getIdNo(){
        return idNo;
    }

    public void setIdNo(String idNo){
        this.idNo = idNo;
    }
    public String getTlNo(){
        return tlNo;
    }

    public void setTlNo(String tlNo){
        this.tlNo = tlNo;
    }
    public String getContacts(){
        return contacts;
    }

    public void setContacts(String contacts){
        this.contacts = contacts;
    }
    public String getIncmPermAmt(){
        return incmPermAmt;
    }

    public void setIncmPermAmt(String incmPermAmt){
        this.incmPermAmt = incmPermAmt;
    }
    public String getCcyCd(){
        return ccyCd;
    }

    public void setCcyCd(String ccyCd){
        this.ccyCd = ccyCd;
    }
    public Date getBeginDt(){
        return beginDt;
    }

    public void setBeginDt(Date beginDt){
        this.beginDt = beginDt;
    }
    public Date getEndDt(){
        return endDt;
    }

    public void setEndDt(Date endDt){
        this.endDt = endDt;
    }
    public String getRentalFlg(){
        return rentalFlg;
    }

    public void setRentalFlg(String rentalFlg){
        this.rentalFlg = rentalFlg;
    }
    public Date getRegDt(){
        return regDt;
    }

    public void setRegDt(Date regDt){
        this.regDt = regDt;
    }
    public String getConditionsAttached(){
        return conditionsAttached;
    }

    public void setConditionsAttached(String conditionsAttached){
        this.conditionsAttached = conditionsAttached;
    }
    public String getRentRmk(){
        return rentRmk;
    }

    public void setRentRmk(String rentRmk){
        this.rentRmk = rentRmk;
    }
    public String getOprOrgNo(){
        return oprOrgNo;
    }

    public void setOprOrgNo(String oprOrgNo){
        this.oprOrgNo = oprOrgNo;
    }
    public String getOprNo(){
        return oprNo;
    }

    public void setOprNo(String oprNo){
        this.oprNo = oprNo;
    }
    public Date getOprDt(){
        return oprDt;
    }

    public void setOprDt(Date oprDt){
        this.oprDt = oprDt;
    }
    public String getCltId(){
        return cltId;
    }

    public void setCltId(String cltId){
        this.cltId = cltId;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getCreatedById() {
        return createdById;
    }

    public void setCreatedById(String createdById) {
        this.createdById = createdById;
    }

    public String getCreatedByName(){
        return createdByName;
    }

    public void setCreatedByName(String createdByName){
        this.createdByName = createdByName;
    }
    public Date getCreatedTime(){
        return createdTime;
    }

    public void setCreatedTime(Date createdTime){
        this.createdTime = createdTime;
    }
    public String getDelflag(){
        return delflag;
    }

    public void setDelflag(String delflag){
        this.delflag = delflag;
    }
    public Integer getDisplayOrder(){
        return displayOrder;
    }

    public void setDisplayOrder(Integer displayOrder){
        this.displayOrder = displayOrder;
    }
    public String getModifiedByName(){
        return modifiedByName;
    }

    public String getModifiedById() {
        return modifiedById;
    }

    public void setModifiedById(String modifiedById) {
        this.modifiedById = modifiedById;
    }

    public void setModifiedByName(String modifiedByName){
        this.modifiedByName = modifiedByName;
    }
    public Date getModifiedTime(){
        return modifiedTime;
    }

    public void setModifiedTime(Date modifiedTime){
        this.modifiedTime = modifiedTime;
    }
    public Integer getVersion(){
        return version;
    }

    public void setVersion(Integer version){
        this.version = version;
    }
}

